package chap3_11;

import java.util.Scanner;

public class Exer3_11_5 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        double[]num=new double[8];
        double amas=1;
        for(int i=0;i<num.length;i++){
            System.out.println("输入第"+(i+1)+"个数：");
            num[i]=input.nextDouble();
            amas*=num[i];
        }
        System.out.println("数组中数的乘积为："+amas);
    }
}
